import smtplib
from email.mime.text import MIMEText
from email.header import Header


class  EmailSendHandler(object):
    def __init__(self, sender, receivers, host, user, psw):
        self.sender = sender
        self.receivers = receivers
        self.host = host
        self.user = user
        self.psw = psw

    def send_email(self, title, content):
        mimetext = MIMEText(content, 'plain', 'utf-8')
        content["title"] = Header(title, "utf-8")       # 邮件标题
        content["from"] = Header(self.sender, "utf-8")
        content["to"] = Header("收件人名称","utf-8")

        smtpObj = smtplib.STMP()





    def set_title(self, title=None):
        pass




if __name__ == "__main__" :
    pass






